package com.example.manpower.Dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserExport {
    private Integer userId;

    private String userName;

    private String userSex;

    private Integer userAge;

    private String address;

    private String userCarid;

    private String phone;

    private String email;

    private Integer nation;

    private String positionName;

    private Integer postitionId;

    private Integer departmentId;

    private BigDecimal userSalary;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date entryTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date resignationTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
